package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.EstateProjectActivityCoupon;
import com.ecoolex.ying.space.entity.EstateProjectActivityCouponExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface EstateProjectActivityCouponMapper {
    long countByExample(EstateProjectActivityCouponExample example);

    int deleteByExample(EstateProjectActivityCouponExample example);

    int deleteByPrimaryKey(Integer couponId);

    int insert(EstateProjectActivityCoupon record);

    int insertSelective(@Param("record") EstateProjectActivityCoupon record, @Param("selective") EstateProjectActivityCoupon.Column ... selective);

    EstateProjectActivityCoupon selectOneByExample(EstateProjectActivityCouponExample example);

    List<EstateProjectActivityCoupon> selectByExample(EstateProjectActivityCouponExample example);

    EstateProjectActivityCoupon selectByPrimaryKey(Integer couponId);

    EstateProjectActivityCoupon selectByPrimaryKeyWithLogicalDelete(@Param("couponId") Integer couponId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") EstateProjectActivityCoupon record, @Param("example") EstateProjectActivityCouponExample example, @Param("selective") EstateProjectActivityCoupon.Column ... selective);

    int updateByExample(@Param("record") EstateProjectActivityCoupon record, @Param("example") EstateProjectActivityCouponExample example);

    int updateByPrimaryKeySelective(@Param("record") EstateProjectActivityCoupon record, @Param("selective") EstateProjectActivityCoupon.Column ... selective);

    int updateByPrimaryKey(EstateProjectActivityCoupon record);

    int batchInsert(@Param("list") List<EstateProjectActivityCoupon> list);

    int batchInsertSelective(@Param("list") List<EstateProjectActivityCoupon> list, @Param("selective") EstateProjectActivityCoupon.Column ... selective);

    int logicalDeleteByExample(@Param("example") EstateProjectActivityCouponExample example);

    int logicalDeleteByPrimaryKey(Integer couponId);
}